package pojo;

import java.util.Collection;
import java.util.Objects;

public class TbDetailType {
    private Integer detailTypeId;
    private String detailTypeName;
    private Integer detailTypePage;
    private Collection<TbPhoneDetail> tbPhoneDetailsByDetailTypeId;

    public Integer getDetailTypeId() {
        return detailTypeId;
    }

    public void setDetailTypeId(Integer detailTypeId) {
        this.detailTypeId = detailTypeId;
    }

    public String getDetailTypeName() {
        return detailTypeName;
    }

    public void setDetailTypeName(String detailTypeName) {
        this.detailTypeName = detailTypeName;
    }

    public Integer getDetailTypePage() {
        return detailTypePage;
    }

    public void setDetailTypePage(Integer detailTypePage) {
        this.detailTypePage = detailTypePage;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbDetailType that = (TbDetailType) o;
        return Objects.equals(detailTypeId, that.detailTypeId) &&
                Objects.equals(detailTypeName, that.detailTypeName) &&
                Objects.equals(detailTypePage, that.detailTypePage);
    }

    @Override
    public int hashCode() {
        return Objects.hash(detailTypeId, detailTypeName, detailTypePage);
    }

    public Collection<TbPhoneDetail> getTbPhoneDetailsByDetailTypeId() {
        return tbPhoneDetailsByDetailTypeId;
    }

    public void setTbPhoneDetailsByDetailTypeId(Collection<TbPhoneDetail> tbPhoneDetailsByDetailTypeId) {
        this.tbPhoneDetailsByDetailTypeId = tbPhoneDetailsByDetailTypeId;
    }
}
